﻿/*共用*/
@font-face {
    font-family: 'Noto Sans TC';
    src: url('/font/Noto_Sans_TC/NotoSansTC-Light.otf');
    font-weight: 300;
}

@font-face {
    font-family: 'Noto Sans TC';
    src: url('/font/Noto_Sans_TC/NotoSansTC-Regular.otf');
    font-weight: 400;
}

@font-face {
    font-family: 'Noto Sans TC';
    src: url('/font/Noto_Sans_TC/NotoSansTC-Medium.otf');
    font-weight: 500;
}

@font-face {
    font-family: 'Noto Sans TC';
    src: url('/font/Noto_Sans_TC/NotoSansTC-Bold.otf');
    font-weight: 700;
}

@font-face {
    font-family: 'Noto Sans TC';
    src: url('/font/Noto_Sans_TC/NotoSansTC-Black.otf');
    font-weight: 900;
}

*{
    margin: 0;
    padding: 0;
    text-decoration: none;
}

:focus,
:focus-visible,
.btn:focus,
.btn:focus-visible {
    outline: none !important;
}

.btn.focus, .btn:focus {
    outline: 0;
    box-shadow: none!important;
}

a{
    color: #666;
}

a:hover, a:focus {
    text-decoration: none;
    color: transparent;
    outline: none;
    outline-offset: unset;
}

.form-control:focus {
    box-shadow: none;
    border-color: #ccc;
}

ul, ol, li {
    list-style: none;
    margin-bottom: 0;
}

.btn:active {
    box-shadow: none;
}

img {
    max-width: 100%;
    height: auto;
}

/*admin*/
.admin_content {
    padding: 20px 30px;
}

.admin .title_item {
    display: flex;
    align-items: center;
    margin-bottom:20px;
}

.admin .title_item .title span {
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 500;
    color: #000000;
    font-size: 28px;
    letter-spacing: 3px;
}

.admin .title_item .btn_item {
    margin-left: 10px;
}

.admin .title_item .btn_item .btn {
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 500;
    color: #000000;
    border: 1px solid #000000;
    border-radius: 0;
    letter-spacing: 3px;
    font-size: 16px;
    padding: 7px 10px;
    min-width: 110px;
    transition: background 0.8s ease,color 0.8s ease;
}

.admin .title_item .btn_item .btn:hover {
    background: #000000;
    color: #ffffff;
}

.admin .table_item {
    margin-top: 30px;
    overflow: auto;
}

.admin .table_item .table {
    word-break: keep-all;
}

.admin .table_item .table th {
    font-family: 'Noto Sans TC';
    font-weight: 500;
    border: none;
    border-bottom: 1px solid #000000;
    background: #000000;
    color: #ffffff;
    text-align: center;
    font-size: 18px;
    letter-spacing: 2px;
}

.admin .table_item .table td {
    font-family: 'Noto Sans TC';
    font-weight: 500;
    text-align: center;
    vertical-align: middle;
    border: none;
    border-top: 1px solid #dee2e6;
}

.admin .table_item .table .btn {
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 500;
    color: #000000;
    border: 1px solid #000000;
    border-radius: 0;
    letter-spacing: 3px;
    font-size: 16px;
    padding: 7px 10px;
    min-width: 110px;
    transition: background 0.8s ease, color 0.8s ease;
}

.admin .table_item .table .btn:hover {
    background: #000000;
    color: #ffffff;
}

.admin .modal-header .close {
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: bold;
    background: #000000;
    font-size: 20px;
    color: #ffffff;
    width: 30px;
    height: 30px;
    border: 2px solid #000000;
    transition: all 0.6s ease;
    opacity: 1;
    text-shadow: none;
    margin: 0;
    padding: 0;
}

.admin .modal-content {
    border-radius: 5px;
}

.admin .modal-body {
    padding: 15px;
}

.admin .modal-body .input-group,
.admin .input-group {
    margin-bottom: 10px;
}

.admin .modal-body .input-group .input-group-text,
.admin .input-group .input-group-text {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
    min-width: 100px;
    justify-content: center;
}

.admin .modal-footer {
    justify-content: center;
}

.admin .modal-footer .btn {
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 500;
    color: #000000;
    border: 1px solid #000000;
    border-radius: 0;
    letter-spacing: 3px;
    font-size: 16px;
    padding: 7px 10px;
    min-width: 110px;
    transition: background 0.8s ease,color 0.8s ease;
}

.admin .modal-footer .btn:hover {
    background: #000000;
    color: #ffffff;
}

.admin .u_item {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}

.admin .u_item .file_text {
    display: inline-block;
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 400;
    color: #666666;
    width: 65%;
    padding-bottom: 5px;
    letter-spacing: 2px;
    overflow: hidden;
    min-height: 31px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.admin .u_item .btn {
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 400;
    color: #ffffff;
    background: #000000;
    border-radius: 0;
    font-size: 15px;
    letter-spacing: 2px;
    border: none;
    padding: 8px 10px;
    margin-left: 10px;
}

.admin .pic_link {
    display: inline-block;
    width: 100px;
    height: 100px;
}

.admin .pic_link .pic {
    width: 100px;
    height: 100px;
    object-fit: cover;
    object-position: center;
}

.admin .remaining_prizes {
    margin-top: 10px;
}

.admin .remaining_prizes .r_title span {
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 400;
    color: #ff0000;
    font-size: 22px;
    letter-spacing: 1px;
}

.admin .remaining_prizes .r_info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.admin .remaining_prizes .r_info .info_text {
    padding-right: 20px;
}

.admin .remaining_prizes .r_info .info_text .text {
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 600;
    color: #000000;
    font-size: 20px;
    letter-spacing: 1px;
}

.admin .remaining_prizes .r_info .info_text .other {
    color: #ff0000;
}

/*抽獎畫面*/
.info {
    position: relative;
    background: url(/Images/pic_02.png) no-repeat center;
    background-size: cover;
    width: 100%;
    max-width: 550px;
    margin: auto;
    height: 100vh;
    overflow: hidden;
}

.info .top {
    width: 50%;
    margin: auto;
    padding-top: 50px;
}

.info .icon_share {
    position: absolute;
}

@keyframes iconFloat {
    0% {
        transform: translate(0px, 0px) rotate(0deg);
    }

    25% {
        transform: translate(6px, -8px) rotate(1.5deg);
    }

    50% {
        transform: translate(-5px, 6px) rotate(-1deg);
    }

    75% {
        transform: translate(7px, 5px) rotate(1deg);
    }

    100% {
        transform: translate(0px, 0px) rotate(0deg);
    }
}

.info .icon_01 {
    width: 60px;
    top: 6%;
    left: 11%;
    animation: iconFloat 2s infinite ease-in-out;
}

.info .icon_02 {
    width: 60px;
    top: 9%;
    right: 9%;
    animation: iconFloat 3s infinite ease-in-out;
}

.info .icon_03 {
    width: 60px;
    top: 23%;
    left: 9%;
    animation: iconFloat 4s infinite ease-in-out;
}

.info .icon_04 {
    width: 50px;
    top: 21%;
    right: 9%;
    animation: iconFloat 5s infinite ease-in-out;
}

.info .anim_item {
    position: relative;
    width: 80%;
    margin: auto;
    padding-top: 8px;
}

.info .anim_item #anim {
    position: absolute;
    top: 8px;
}

.info .form_item .form {
    background: #000000;
    padding: 25px 20px;
}

.info .form_item {
    background: #dae342;
    padding: 8px;
    position: absolute;
    bottom: 0;
}

.info .form_item .order_item {
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.info .form_item .order_item span {
    font-family: 'Noto Sans TC';
    font-weight: 700;
    font-size: 24px;
    color: #000000;
    background: #dae342;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: keep-all;
    padding: 5px 35px;
    letter-spacing: 1px;
}

.info .form_item .order_item .form-control {
    padding: 5px 15px;
    border: none;
    border-radius: 0;
    color: #898989;
    font-family: 'Noto Sans TC';
    font-weight: 600;
    font-size: 24px;
    height: auto;
    transition: none;
}

.info .form_item .s_list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    padding-bottom: 12px;
}

.info .form_item .s_list .item {
    position: relative;
    border-bottom: 2px solid #ffffff;
    margin: 0 5px;
    padding: 0 5px;
    padding-bottom: 7px;
}

.info .form_item .s_list .item a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.info .form_item .s_list .item img {
    width: 20px;
}

.info .form_item .s_list .item span {
    position: relative;
    font-family: 'Noto Sans TC';
    font-weight: 400;
    font-size: 17px;
    color: #ffffff;
    letter-spacing: 1px;
    padding-left: 5px;
}

.info .form_item .s_list .item label {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.info .form_item .s_list .item input[type="checkbox"] {
    display: none;
}

.info .form_item .s_list .item .agreement-text {
    padding-left: 24px;
}

.info .form_item .s_list .item .agreement-text::before {
    content: "";
    position: absolute;
    top: 55%;
    left: 0;
    width: 18px;
    height: 18px;
    border: 2px solid #dae342;
    border-radius: 50%;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    transform: translateY(-50%);
}

.info .form_item .s_list .item .agreement-text::after {
    content: "";
    position: absolute;
    top: 55%;
    left: 6.5%;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #dae342;
    opacity: 0;
    transition: opacity 0.2s ease;
    transform: translate(-50%, -50%);
}

.info .form_item .s_list .item .checkbox-container input[type="checkbox"]:checked + .agreement-text::after {
    opacity: 1;
}

.info .form_item .btn_item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 -8px;
    padding-top: 5px;
}

.info .form_item .btn_item a {
    display: block;
    margin: 0 8px;
}

.info .form_item .small_text {
    text-align: center;
    padding-top: 20px;
    padding-bottom: 10px;
}

.info .form_item .small_text span {
    display: block;
    font-family: 'Noto Sans TC';
    font-weight: 600;
    font-size: 17px;
    color: #000000;
    line-height: 20px;
}

.info .form_item .small_text .other {
    font-weight:500;
}

/*modal*/
.modal .modal-content {
    border: 1px solid #dae342;
    border-radius: 0;
}

.modal .close {
    position: absolute;
    width: 40px;
    top: 15px;
    right: 20px;
    margin: 0;
    padding: 0;
    text-shadow: none;
    opacity: 1;
    z-index: 2;
}

.modal .close:hover {
    opacity: 1;
}

.award_modal .modal-content {
    background: transparent;
}

.award_modal .modal-body {
    padding: 0;
}

.event_modal .close {
    top: 40px;
    right: 40px;
}

.event_modal .modal-body {
    padding: 40px 30px;
    max-height: 800px;
    overflow: auto;
}

.event_modal .modal-body .title {
    padding-bottom: 30px;
}

.event_modal .modal-body .title span {
    display: inline-block;
    font-family: 'Noto Sans TC';
    font-weight: 600;
    font-size: 24px;
    color: #ffffff;
    background: #000000;
    letter-spacing: 1px;
    padding: 5px 20px;
    border-radius: 50px;
}

.event_modal .modal-body .top_text span {
    font-family: 'Noto Sans TC';
    font-weight: 400;
    font-size: 14px;
    color: #000000;
}

.event_modal .modal-body .item span {
    display: block;
    font-family: 'Noto Sans TC';
    font-weight: 400;
    font-size: 15px;
    color: #000000;
    text-align: justify;
    padding-bottom: 10px;
    line-height: 24px;
}

.error_modal .modal-body{
    padding:0;
}

.error_modal .modal-body .text {
    text-align: center;
    padding-top: 25px;
}

.error_modal .modal-body .text span {
    display: block;
    font-family: 'Noto Sans TC';
    font-weight: 400;
    color: #000000;
    letter-spacing: 1px;
}

.error_modal .modal-body .text .t1 {
    font-size: 26px;
    padding-bottom: 20px;
}

.error_modal .modal-body .text .t2 {
    font-size: 18px;
}

.error_modal .modal-body .btn_item {
    display: flex;
    justify-content: center;
    padding-top: 20px;
    padding-bottom: 30px;
}

.error_modal .modal-body .btn_item .btn {
    display: block;
    width: 40%;
    font-family: 'Noto Sans TC';
    font-weight: 400;
    font-size: 20px;
    color: #ffffff;
    letter-spacing: 3px;
    background: #000000;
    border-radius: 50px;
    border: none;
    transition: none;
    padding: 7px 20px;
}

.prize_modal .btn_item {
    position: absolute;
    left: 50%;
    bottom: 6%;
    transform: translateX(-50%);
    width: 80%;
    margin: auto;
}

.prize_modal .btn_item .serial {
    position: absolute;
    left: 50%;
    top: 63%;
    transform: translate(-50%, -50%);
    font-family: 'Noto Sans TC';
    font-weight: 600;
    font-size: 25px;
    color: #000000;
    letter-spacing: 2px;
}

.from_modal .modal-body {
    padding: 30px 20px;
    max-height: 850px;
    overflow: auto;
}

.from_modal .modal-body .title {
    text-align: center;
}

.from_modal .modal-body .title span {
    display: inline-block;
    font-family: 'Noto Sans TC';
    font-weight: 400;
    font-size: 22px;
    color: #ffffff;
    background: #000000;
    border-radius: 50px;
    padding: 5px 60px;
}

.from_modal .modal-body .from_item {
    padding-top: 15px;
}

.from_modal .modal-body .from_item .item {
    padding-bottom: 15px;
}

.from_modal .modal-body .from_item .t_item {
    padding-bottom: 5px;
}

.from_modal .modal-body .from_item .t_item span {
    display: inline-block;
    font-family: 'Noto Sans TC';
    font-weight: 400;
    font-size: 21px;
    color: #000000;
}

.from_modal .modal-body .from_item .t_item .other {
    font-size: 16px;
    color: #ff0000;
}

.from_modal .modal-body .from_item .form-control {
    font-family: 'Noto Sans TC';
    font-weight: 400;
    font-size: 21px;
    color: #000000;
    border: 1px solid #000000;
    border-radius: 14px;
    transition: none;
    padding: 5px 15px;
}

.from_modal .modal-body .from_item .form-control::placeholder {
    font-family: 'Noto Sans TC';
    font-weight: 400;
    font-size: 21px;
    color: #000000;
}

.from_modal .modal-body .from_item .address_item .form-control {
    margin-bottom: 10px;
}

.from_modal .modal-body .from_item .btn_item .btn {
    display: block;
    font-family: 'Noto Sans TC';
    font-weight: 400;
    font-size: 19px;
    color: #ffffff;
    background: #000000;
    transition: none;
    border-radius: 14px;
    border: none;
    padding: 10px 15px;
    letter-spacing: 1px;
}

.from_modal .modal-body .from_item .small_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding-top: 15px;
}

.from_modal .modal-body .from_item .line {
    display: inline-block;
    font-family: 'Noto Sans TC';
    font-weight: 400;
    font-size: 18px;
    color: #000000;
    border-bottom: 1px solid #000000;
    padding-bottom: 4px; 
}

